#!/bin/bash

cp -rf ido_device/* ../device/

if [ $? -ne 0 ]; then   
    echo "patch failed!!!"
    exit 1
fi

cp -rf ido_vendor/* ../vendor/
if [ $? -ne 0 ]; then   
    echo "patch failed!!!"
    exit 1
fi

cp -rf ../kernel/linux/config/linux-5.10/rk3568 ../kernel/linux/config/linux-5.10/purple_pi_oh
if [ $? -ne 0 ]; then   
    echo "patch failed!!!"
    exit 1
fi

cp -f ido_others/compile_standard_whitelist.json ../build/compile_standard_whitelist.json
if [ $? -ne 0 ]; then   
    echo "patch failed!!!"
    exit 1
fi

cp -f ido_others/touch_gt911.c ../drivers/hdf_core/framework/model/input/driver/touchscreen/touch_gt911.c

if [ $? -eq 0 ]; then
    echo "patch complete!"
else
    echo "patch failed!!!"
    exit 1
fi

